<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    window.addEventListener('error', function (e) {
      console.log("error listener")
    })
  </script>
  <script src="../lib/index.js"></script>
  <script src="./init.js"></script>
</head>
<body>
  
</body>
<script>
  window.addEventListener('error', function (e) {
    console.log("error listener")
  })

  window.onerror = function (e) {
    console.log("window onerror")
  }

  throw new Error("ddd")
</script>
</html>